﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace BricksProblemSolver
{
    public interface ILog
    {
        void Write(string message);

        void Write(string format, params object[] args);
    }

    internal class Log : ILog
    {
        public void Write(string message)
        {
            Console.WriteLine(string.Format("{0:yyyy-MM-dd HH:mm:ss fff} - T{1} - {2}", DateTime.Now, Thread.CurrentThread.ManagedThreadId, message));
        }

        public void Write(string format, params object[] args)
        {
            Write(string.Format(format, args));
        }
    }
}
